package com.impzx.iwframe.persist.dao;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.impzx.iwframe.AbstractJunitTest;



public class DaoTestBase extends AbstractJunitTest {

	protected UserDao userDao;
	
	public DaoTestBase() {
		try {
			super.setCtx(new ClassPathXmlApplicationContext(new String[] {
					"com/iwframe/config/rest/beans/dao.xml",
					"com/iwframe/config/rest/properties/*.xml",
					"com/iwframe/config/rest/mybatis/*.xml",
					"com/iwframe/config/rest/beans/properties.xml"}));
			
			userDao = (UserDao) super.getBeans("userDao");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
